<template></template>

<script setup lang="ts">
const { uid } = useUserStore()
if (uid) await navigateTo({ name: 'user-userId', params: { userId: uid } }, { replace: true })
else await navigateTo({ name: 'login' }, { replace: true })

</script>

<style lang='scss' scoped></style>